import { RouteRecordRaw } from "vue-router";
import { RouterName } from "~~/src/enum/router";

const router :Array<RouteRecordRaw> = [
    {
        path:'/',
        component:()=>import("@/views/layouts/home/index.vue"),
        redirect(){
            return {name:RouterName.INDEX}
        },
        children:[
            {
                path:"/index",
                name:RouterName.INDEX,
                component:()=>import("@/views/pages/index/index.vue")
            },
            {
                path:"/demo",
                name:RouterName.DEMO,
                component:()=>import("@/views/pages/demo/index.vue")
            }
        ]
    }
]

export default router